package com.example.stroebackstage.service;
import com.example.stroebackstage.dao.CustomersDao;
import com.example.stroebackstage.entity.Customer;
import java.util.ArrayList;

public class CustomerService {
    public ArrayList<Customer> selectAll(){
        return CustomersDao.selectCustomer();
    }
    public ArrayList<Customer> selectByNameOrEmail(String string){
        return CustomersDao.selectCustomer(string);
    }
    public boolean del(String email){return CustomersDao.delCustomers(email);}
    public boolean updateCustomer(Customer customer){
        return CustomersDao.updateCustomers(customer);}
    public boolean insert(Customer customer){
        return CustomersDao.insertCustomers(customer);}
}
